package r21310.chap06.d1118;



import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class stuapp {
    static List<student> list=new ArrayList<>();
    public static void main(String[] args) {
        inti();
        System.out.println("平均分成绩是"+Tools.getAry(list));
        System.out.println("最高分的学生信息是"+Tools.getmax(list));
        System.out.println("不及格的学生信息是"+Tools.getname(list));


    }
    public static void inti(){
      student stu1=new student("刘备",90,1);
        student stu2=new student("哈哈",88,2);
        student stu3=new student("呵呵",85,3);
        student stu4=new student("张三",54,4);
        student stu5=new student("李四",88,5);
        student stu6=new student("王五",55,6);
        Collections.addAll(list,stu1,stu2,stu3,stu4,stu5,stu6);
    }

}
